package com.du.fileload.framework.config;

import com.du.fileload.framework.utils.DiskCapacityUtils;

import java.util.List;

public class DFileCompress {

    private long limitLen;

    private int compressLevle=2;
    private String suffix=".png,.jpg,.jpeg,.JPG,.PNG";

    private List<DFileCompressRatio> compressRatio;

    public long getLimitLen() {
        return limitLen;
    }

    public void setLimitLen(String limitLen) {
        this.limitLen = DiskCapacityUtils.getFileLen(limitLen);
    }

    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }

    public List<DFileCompressRatio> getCompressRatio() {
        return compressRatio;
    }

    public void setCompressRatio(List<DFileCompressRatio> compressRatio) {
        this.compressRatio = compressRatio;
    }

    public int getCompressLevle() {
        return compressLevle;
    }

    public void setCompressLevle(int compressLevle) {
        this.compressLevle = compressLevle;
    }
}
